package com.jt.controller;

public class TestController {
    public static void main(String[] args) throws InterruptedException {
        ThreadObj threadObj1=new ThreadObj();
        ThreadObj threadObj2=new ThreadObj();
        threadObj1.start();
        threadObj2.join(1000);

    }

    static class  ThreadObj extends Thread{

        @Override
        public void run() {
            System.out.println("3123213");
        }
    }
}
